package lottery;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.jws.WebService;

import lottery.msgs.LotteryBet;
import lottery.msgs.LotteryResult;

@WebService(endpointInterface="lottery.RemoteLotteryGameService")
@Stateless
public class LotteryGameWebService implements RemoteLotteryGameService{
	@EJB LocalLotteryGameService service;

	@Override
	public void placeBet(LotteryBet lotteryBet) throws Exception {
		service.placeBet(lotteryBet);
	}

	@Override
	public LotteryResult[] retrieveResults(int sourceSystemId) throws Exception {
		return service.retrieveResults(sourceSystemId);
	}

}

